home *** CD-ROM | disk | FTP | other *** search
/ PD ROM 1 / PD ROM Volume I - Macintosh Software from BMUG (1988).iso / Programming / Programming Tools / Pascal Demos from Apple / sinegrd⁄skelr / SKELR.TEXT < prev   
Encoding:
Text File  |  1985-05-14  |  7.6 KB  |  328 lines  |  [TEXT/ttxt]

  1. *  SkelR -- Resource definition file for small skeleton application
  2. *                Written by Steve Maker
  3.  
  4. * Tell RMAKER what to name the resource file
  5. example/Skel.Rsrc
  6.  
  7. * Version data for the finder
  8. *    Our signature is "SKEL"
  9. *    res. ID = 0, by convention
  10. *    finder version data
  11. type SKEL = STR
  12.   ,0
  13.   Skel 2.4 -- May 9, 1985
  14.  
  15. * Read application code from this file
  16. * This resource is usually at the end for run-time efficiency reasons.
  17. *   filename, ID = 0 for first code
  18. Type CODE
  19. Example/SkelL,0
  20.  
  21. * Menus
  22. *   ID (4 => pre-load the resource; MUST NOT be purgeable!)
  23. *   menu title: an Apple symbol (in hex) for the Apple menu.
  24. *   menu entries, one per line. ( means it's initially disabled.
  25. *   An entry of  (-  means a disabled line of dashes.
  26. *   A trailing /Q means a command-key equivalent.
  27. *   blank line at end of menu.
  28. Type MENU
  29.   ,1(4)
  30.   \14
  31.     About Skel
  32.     (-
  33.  
  34.   ,2(4)
  35.   File
  36.     Rattle
  37.     Frighten
  38.     (-
  39.     Quit/Q
  40.  
  41. * A Window template
  42. *   ID,(4 => pre-load the resource; 32 => purgeable)
  43. *    title
  44. *    BoundsRect (global Top, Left, Bottom, Right): where it appears on the screen
  45. *    Vis NoGo: it's visible, but has no close box
  46. *    ProcId: this is a standard type of window
  47. *    Refcon, for program's use.  Skel doesn't use it.
  48. Type WIND
  49.   ,260(36)
  50.   A Skeleton Application
  51.   85 128 256 384
  52.   Visible NoGoAway
  53.   0
  54.   0
  55.  
  56. * Strings (kept here for ease of change)
  57. *   ID,(4 => pre-load the resource)
  58. * A string for "About Skel"
  59. * Rattle string
  60. * Frighten String
  61. type STR
  62.    ,1(4)
  63.     Skel 2.4:  By Steve Maker, Dartmouth College, May 9, 1985.\0D\0DCopy Skel freely;  send me comments, but no questions, please.
  64.    ,2(4)
  65. \0D                          Too tired to Rattle them bones.
  66.    ,3(4)
  67. \0D                                                  Boo!
  68.    ,4(4)
  69. \0D        Insufficient Memory to open that Desk Accessory!
  70.  
  71. * dialog box for Report
  72. *   ID (4 => pre-load the resource; MUST NOT be purgeable!)
  73. *   BoundsRect(global: TLBR)
  74. *   vis., window type is modal dialog, has no close box, unused user vbl
  75. *   res. ID of item list
  76. *   title
  77. Type DLOG
  78.   ,257(4)
  79.   95 20 185 492
  80.   Visible 1 NoGoAway 0
  81.   257
  82. Report Box
  83.  
  84. * dialog item list for Report
  85. *   ID (4 => pre-loaded; 32 => purgeable - it should always be purgeable.)
  86. *   # Items
  87. *   the first item:
  88. *      a Button you can select
  89. *      display rect (local coords)
  90. *      title
  91. *   the second item:
  92. *     Static text, disabled (i.e. can't select it), which is big enough for
  93. *        several lines of text (dialog mgr will do word wrap etc)
  94. *     display rect
  95. *     text to be set by ParamText
  96. Type DITL
  97.   ,257(36)
  98.   2
  99.     BtnItem Enabled
  100.     65 186 86 286
  101. OK
  102.  
  103.     StatText Disabled
  104.     5 10 60 462
  105. ^0
  106.  
  107. ****************************************************************************
  108. ****        This section contains information for the Finder;           ****
  109. ****     the program SKEL never accesses this information directly.     ****
  110. ****        The entire section can be omitted from the first versions   ****
  111. ****     of a program (you must then set the application's type to      ****
  112. ****     APPL, the creator to ????, and don't set the bundle bit);      ****
  113. ****     the default application icon will be used.                     ****
  114. ****        For more info, read "Putting together a Mac Application"    ****
  115. ****     and "The Structure of a Mac Application".                      ****
  116. *
  117. *   To make the finder show your application's special icon on the desktop,
  118. *   make documents of your type show their icons, make an
  119. *   application start when a document is opened,
  120. *   and move all files associated with your application
  121. *   when a copy is done, you must:
  122. *       For documents of new types:
  123. *             - set the document's type to the new type (here BONE)
  124. *               (often the program that creates them will do this)
  125. *             - if you want the application to start when a document file
  126. *               is opened, set the file's creator to the signature of
  127. *               the application, here SKEL; otherwise, to ????.
  128. *       For the application:
  129. *             - set the application's type to APPL ("it's an application")
  130. *             - set the creator to its signature, here SKEL
  131. *             - set the bundle bit. This tells the finder that it should read
  132. *               this info from the SKEL resource file and use it when displaying
  133. *               SKEL's icon.
  134. *   If you use SendOne, these items will have to be set with SetFile the first
  135. *   time, and then not again; if you use MacCom, they are set every time
  136. *   (usually in the exec file).
  137. *   If you change the icon, the change may not have effect on the desktop,
  138. *   until you reboot with the command and option keys held down.  This tells
  139. *   the Finder to reconstruct the desktop; the correct icons will be displayed,
  140. *   but all folders will be lost.
  141.  
  142. * a Bundle: contains references to other finder info, (below)
  143. *   ID (32 => purgeable)
  144. *   Bundle owner: SKEL (our signature), Res ID of version data = 0
  145. *   # of types in bundle = 2: ICN# and FREF
  146. *   "ICN#" (means icon list), # of icon resources in bndl = 2
  147. *   local ID 0 maps to global ID 128 (the FREF uses a local ID, to refer to
  148. *      an icon which has a global ID. See the FREF resource, below)
  149. *   local ID 1 maps to global ID 129
  150. *   "FREF" (means file reference), # of FREF res in bndl = 2
  151. *   local ID 0 maps to global ID 128
  152. *   local ID 1 maps to global ID 129
  153. Type BNDL
  154.    ,128(32)
  155.    SKEL 0
  156.    2
  157.    ICN# 2
  158.    0 128
  159.    1 129
  160.    FREF 2
  161.    0 128
  162.    1 129
  163.  
  164. * a File Reference
  165. *   ID, (32 => purgeable)
  166. *   "APPL" : a file of type APPL (SKEL itself) gets the following icon (a skull)
  167. *   local icon ID; maps to global ID as specified in BNDL
  168. *   name of file that must accompany application if transferred; omit if none.
  169.   Type FREF
  170.    ,128(32)
  171.    APPL 0
  172.  
  173. * Another File Reference
  174. *   ID, (32 => purgeable)
  175. *   "BONE" : a file of type BONE gets the following icon (crossbones)
  176. *   local icon ID
  177. *   no filename
  178. Type FREF
  179.    ,129(32)
  180.    BONE 1
  181.  
  182. * An icon list for the application icon (a skull)
  183. *   ID (the application icon), (32 => purgeable)
  184. *   2 icons in list (data and mask)
  185. *   the icon data: 32 lines of 8 hex chars each
  186. *   the icon mask: 32 lines of 8 hex chars each
  187. Type ICN#
  188.  ,128(32)
  189.   2
  190. 001FF000
  191. 01E00F00
  192. 070001C0
  193. 0C000060
  194. 18783C30
  195. 10CC6610
  196. 31844318
  197. 21044108
  198. 21044108
  199. 218C6308
  200. 20F83E08
  201. 30000018
  202. 10000010
  203. 08000020
  204. 04028040
  205. 03028180
  206. 01828300
  207. 00828200
  208. 00400400
  209. 00400400
  210. 00400400
  211. 004FE400
  212. 005BB400
  213. 005BB400
  214. 007FFC00
  215. 00200800
  216. 00301800
  217. 00183000
  218. 0007E000
  219. 00000000
  220. 00000000
  221. 00000000
  222. 001FF000
  223. 01FFFF00
  224. 07FFFFC0
  225. 0FFFFFE0
  226. 1FFFFFF0
  227. 1FFFFFF0
  228. 3FFFFFF8
  229. 3FFFFFF8
  230. 3FFFFFF8
  231. 3FFFFFF8
  232. 3FFFFFF8
  233. 3FFFFFF8
  234. 1FFFFFF0
  235. 0FFFFFE0
  236. 07FFFFC0
  237. 03FFFF80
  238. 01FFFF00
  239. 00FFFE00
  240. 007FFC00
  241. 007FFC00
  242. 007FFC00
  243. 007FFC00
  244. 007FFC00
  245. 007FFC00
  246. 007FFC00
  247. 003FF800
  248. 003FF800
  249. 001FF000
  250. 0007E000
  251. 00000000
  252. 00000000
  253. 00000000
  254.  
  255. * An icon list for a file of type BONE (crossbones)
  256. *   ID (the icon for BONE files), (32 => purgeable)
  257. *   the icon data: 32 lines of 8 hex chars each
  258. *   the icon mask: 32 lines of 8 hex chars each
  259. ,129(32)
  260.  2
  261. 03C000F0
  262. 06600198
  263. 04300308
  264. 1C30030E
  265. 30200103
  266. 20300301
  267. 20180601
  268. 300C0C03
  269. 1F06183E
  270. 0D83306C
  271. 00C1E0C0
  272. 0060C180
  273. 00306300
  274. 00183600
  275. 000C1C00
  276. 000E0C00
  277. 001B0600
  278. 00318300
  279. 0060C180
  280. 00C1E0C0
  281. 01833060
  282. 03061830
  283. 1E0C0C1E
  284. 30180603
  285. 20300301
  286. 20600181
  287. 20400081
  288. 20400081
  289. 30400083
  290. 18C000C6
  291. 0F80007C
  292. 00000000
  293. 03C000F0
  294. 07E001F8
  295. 07F003F8
  296. 1FF003FE
  297. 3FE001FF
  298. 3FF003FF
  299. 3FF807FF
  300. 3FFC0FFF
  301. 1FFE1FFE
  302. 0DFF3FEC
  303. 00FFFFC0
  304. 007FFF80
  305. 003FFF00
  306. 001FFE00
  307. 000FFC00
  308. 000FFC00
  309. 001FFE00
  310. 003FFF00
  311. 007FFF80
  312. 00FFFFC0
  313. 01FF3FE0
  314. 03FE1FF0
  315. 1FFC0FFE
  316. 3FF807FF
  317. 3FF003FF
  318. 3FE001FF
  319. 3FC000FF
  320. 3FC000FF
  321. 3FC000FF
  322. 1FC000FE
  323. 0F80007C
  324. 00000000
  325.  
  326. ****    end of information for the finder                          ****
  327. ***********************************************************************
  328.